namespace SearchTools.Providers
{
    /// <summary>
    /// Source / key pair
    /// </summary>
    public struct ProviderReference
    {
        private string _Key;
        private string _ProviderName;

        /// <summary>
        /// Creates a new instance of ProviderReference
        /// </summary>
        /// <param name="provider"></param>
        /// <param name="key"></param>
        public ProviderReference(string provider, string key)
        {
            _Key = key;
            _ProviderName = provider;
        }

        /// <summary>
        /// The key for the provider field
        /// </summary>
        public string Key
        {
            get { return _Key; }
            set { _Key = value; }
        }

        /// <summary>
        /// The provider alias, mapped in configuration
        /// </summary>
        public string ProviderName
        {
            get { return _ProviderName; }
            set { _ProviderName = value; }
        }
    }
}